#include"HashBucket.h"

using namespace hash_bucket;

template <class K,class V>
struct KOT
{
	const K& operator()(const pair<K,V>& data)
	{
		return data.first;
	}
};

void test_num()
{
	HashTable<int, pair<int,int>,KOT<int,int>> s;
	int a[] = { 4, 2, 6, 1, 3, 5, 15, 7, 16, 14 ,9,8,56,27};
	int b[] = { 4, 2, 6, 1, 3, 5, 15, 7, 16, 14 ,9,8,56,27};

	for (int i = 0; i < 14; i++)
	{
		s.Insert(make_pair(a[i], b[i]));
	}
	s.Erase(15);

	s.Print();
}

int main()
{
	test_num();
	return 0;
}